import React from 'react'
import {Icon} from 'antd'

export const GoodIcon = ({type, text, onClick, clicked, title}) => (
  <span title={title} onClick={onClick} style={{color: clicked ? '#ff7900' : '#333', cursor: 'pointer'}}>
    <Icon type={type} style={{ marginRight: 8 }} theme={clicked ? 'filled' : 'outlined'} />
    {text}
  </span>
)